package org.jeecg.modules.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @Description: 学生课程
 * @Author: jeecg-boot
 * @Date:   2024-09-30
 * @Version: V1.0
 */
@Data
@TableName("gw_course_student")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="gw_course_student对象", description="学生课程")
public class GwCourseStudent {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private String id;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**课程标识*/
	@Excel(name = "课程标识", width = 15)
    @ApiModelProperty(value = "课程标识")
	@NotBlank(message = "课程标识不能为空")
	private String courseId;
	/**学生标识*/
	@Excel(name = "学生标识", width = 15)
    @ApiModelProperty(value = "学生标识")
	private String studentId;
	/**课程成绩*/
	@Excel(name = "课程成绩", width = 15)
    @ApiModelProperty(value = "课程成绩")
	private Double courseScore;
}
